#ifndef __BSP_EXIT_H
#define __BSP_EXIT_H
#include "stm32f10x.h"
#include "LD3320.h"
/*LD3320_INT的GPIO口宏定义*/
#define     LD3320_GPIO_CLK          RCC_APB2Periph_GPIOB
#define     LD3320_GPIO_PORT         GPIOB
#define     LD3320_GPIO_PIN          GPIO_Pin_12
/*语音识别打开/关闭的GPIO口宏定义*/
#define     ASR_StatusGPIO_CLK			 RCC_APB2Periph_GPIOD
#define     ASR_StatusGPIO_PORT			 GPIOD
#define     ASR_StatusGPIO_PIN	     GPIO_Pin_8
/* NVIC中断序号宏定义 */
#define     ASR_Status_IRQn					 EXTI9_5_IRQn
#define     LD3320_EXTI_IRQn         EXTI15_10_IRQn
/* EXTI信号源 */
#define     LD3320_EXTI_GPIO_PortSource  GPIO_PortSourceGPIOB
#define     LD3320_EXTI_GPIO_PinSource   GPIO_PinSource12

#define     ASR_Status_GPIO_PortSource	 GPIO_PortSourceGPIOD
#define     ASR_Status_GPIO_PinSource    GPIO_PinSource8
/* EXTI通道宏定义 */
#define     ASR_Status_EXTI_LINE				 EXTI_Line8
#define     LD3320_EXTI_LINE             EXTI_Line12
/* 中断函数名称宏定义 */
#define     ASR_Status_TOGGLE            EXTI9_5_IRQHandler
#define     LD3320_IRQHandler            EXTI15_10_IRQHandler



void NVIC_Config(uint8_t source,uint8_t main,uint8_t vice);
void EXTI_Config(uint8_t GPIO_PortSource,uint8_t GPIO_PinSource,uint32_t source,uint8_t way);


void LD3320_Exti_enable(void);
void LD3320_Exti_disable(void);


void ASR_KeyGPIO_OUTPUT(void);
void ASR_KeyGPIO_INPUT(void);
void ASR_KeyEXTI(void);
#endif
